<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css">
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css">
	<style>
		nav .container-fluid{
			margin-left:100px;
			margin-right: 50px;
		}
		#main{
			margin:0 0px 30px 100px;
		}
		.right{
			float:right;
			width:20%;

		}
		#side{
			float:right;
			margin-left:10px;
			
		}
		.left{
			float:left;
			width:78%;
		}
		.panel{
			width:100%;
			height:100%; 
			float:left;
		}
		.cl{
			width:0px;
			height:0px;
			clear:both;
		}
		ul{
			float:left;
		}
		ul li{
			list-style-type: none;
			float:left;
		}
		footer{
			width: 100%;
			height:300px;
			background: #3c3c3c;
			color: #c2c2c2;
		}
		#myfooter{
			width:1140px;
			margin:0 auto;
			padding:30px 0px;
		}
		#myfooter ul{
			list-style:none;
			line-height:22px;
		}
	</style>
<div class="panel panel-default">
<div class="panel-heading">
    <h3 class="panel-title" id="M1" style="float:left"><b>动态</b></h3>
    <form class="form-inline"  style="float:left;margin-left:40px;" role="form">
   		<span><b>筛选:</b></span>
      <div class="checkbox"><label><input type="checkbox" value ="1">游记</label></div>
	  <div class="checkbox"><label><input type="checkbox" value="2">活动</label></div>
	  <div class="checkbox"><label><input type="checkbox" value="3">求助</label></div> 
	</form>
	<form class="form-inline"  style="float:right;margin-right:40px;" role="form">
   		<span><b>发布类型:</b></span>
   		<select name="" class="test" >
   			<option value="0">选择</option>
   			<option value="1">游记</option>
   			<option value="2">活动</option>
   			<option value="3">求助</option>
   		</select>	    
	</form>
    <br>
    <br>
</div>
 <if condition="$partners eq null">
	<div class="media"  style="height:80px;padding:0 20%" >
    	<h3><b>没有任何消息哦!&nbsp;&nbsp; 
   		<span class="glyphicon glyphicon-hand-right"></span>
   		<a href="">速度添加我的伙伴圈</a></b></h3>
	</div>	
<else/>
	<div id="change1">
		<foreach name='partners' item='part'>
		<if condition="$part['cat_id'] eq 1">
		<label><span class="glyphicon glyphicon-tags">游记类</span></label>
		<div class="media" style="height:145px;padding:10px;border-bottom:1px solid gray;">
			
		    <a class="pull-left" href="#">
		        <img class="media-object" src="{$part['img_path']}" style="width:200px;height: 100px">
		    </a>
		    <div class="media-body" >
		        <h4 class="media-heading"><b>{$part['title']}</b></h4>
				<p style="float:left;height:38px;margin-right:60px;text-indent:2em;overflow:hidden;text-overflow: ellipsis;display:-webkit-box; -webkit-line-clamp:2;-webkit-box-orient:vertical;">
				    {$part['content']}
				</p>	
				<div class="paperBottom" style="float:right;margin-top:30px;">
					<p>
						<span><i class="glyphicon glyphicon-camera"></i>{$part['area']}</span>
						<span><i class="glyphicon glyphicon-user"></i>By:{$part['partner_name']}</span>
						<span><i class="glyphicon glyphicon-eye-open"></i>{$part['browse']}</span>&nbsp;&nbsp;
				        <button type="button" class="btn btn-default btn-sm">
				        	<span class="glyphicon glyphicon-thumbs-up">点赞</span>
				   		</button>&nbsp;&nbsp;
				   		<a href="{:U('Admin/Index/read',['id'=>$part['id']])}">
				   			<button type="button" class="btn btn-default btn-sm">
				        		<span class="glyphicon glyphicon-road">查看</span>
				   			</button>
				   		</a>
				    </p>						
				</div>	  	      
			</div>
		</div>
		<elseif condition="$part['cat_id'] eq 2"/>
		<label><span class="glyphicon glyphicon-tags">活动类</span></label>
		<div class="media" style="height:145px;padding:10px;border-bottom:1px solid gray;">
		    <div class="media-body" >
		        <h4 class="media-heading"><b>{$part['title']}</b></h4>
				<p style="float:left;height:38px;margin-right:60px;text-indent:2em;overflow:hidden;text-overflow: ellipsis;display:-webkit-box; -webkit-line-clamp:2;-webkit-box-orient:vertical;">
				    {$part['content']}
				</p>	
				<div class="paperBottom" style="float:right;margin-top:30px;">
					<p>
						<span><i class="glyphicon glyphicon-camera"></i>{$part['area']}</span>
						<span><i class="glyphicon glyphicon-user"></i>By:{$part['partner_name']}</span>
						<span><i class="glyphicon glyphicon-eye-open"></i>{$part['browse']}</span>&nbsp;&nbsp;
				        <button type="button" class="btn btn-default btn-sm">
				        	<span class="glyphicon glyphicon-thumbs-up">点赞</span>
				   		</button>&nbsp;&nbsp;
				   		<a href="{:U('Admin/Index/read',['id'=>$part['id']])}">
				   			<button type="button" class="btn btn-default btn-sm">
				        		<span class="glyphicon glyphicon-road">查看</span>
				   			</button>
				   		</a>
				    </p>
				</div>	  	      
			</div>
		</div>
		<else />
		<label><span class="glyphicon glyphicon-tags">求助类</span></label>
		<div class="media" style="height:145px;padding:10px;border-bottom:1px solid gray;">
		    <div class="media-body" style="height:145px;">
		        <h4 class="media-heading"><b>{$part['title']}</b></h4>
				<p style="float:left;height:38px;margin-right:60px;text-indent:2em;overflow:hidden;text-overflow: ellipsis;display:-webkit-box; -webkit-line-clamp:3;-webkit-box-orient:vertical;">
				    {$part['content']}
				</p>	
				<div class="paperBottom" style="float:right;">
					<p>
						<span><i class="glyphicon glyphicon-camera"></i>{$part['area']}</span>
						<span><i class="glyphicon glyphicon-user"></i>By:{$part['partner_name']}</span>
						<span><i class="glyphicon glyphicon-eye-open"></i>{$part['browse']}</span>&nbsp;&nbsp;
				   		<a href="{:U('Admin/Index/read',['id'=>$part['id']])}">
				   			<button type="button" class="btn btn-default btn-sm">
				        		<span class="glyphicon glyphicon-road">查看</span>
				   			</button>
				   		</a>
				    </p>
				</div>	  	      
			</div>
		</div>
		</if>
		</foreach>
		<div class="media" style="margin-bottom: 50px;">
			<div style="float:right;margin-right:30px">{$page}</div>
		</div>	
		
	</div>
</if>
<include file='traveladd' />
</div>